package com.graden.background.controller.sysuser.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * <p>
 * 用户修改密码VO类
 * </p>
 *
 * @author zjf
 * @since 2019-03-21
 */
@Data
@ApiModel
public class UserPwdUpdateVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(name = "旧密码", value = "pwd", example = "123456")
    @NotBlank(message = "USER_0011")
    @Size(max = 15,min = 6,message = "USER_0017")
    private String oldPassword;

    @ApiModelProperty(name = "新密码", value = "pwd", example = "12345678")
    @NotBlank(message = "USER_0012")
    @Size(max = 15,min = 6,message = "USER_0017")
    private String newPassword;

    @ApiModelProperty(name = "重复新密码", value = "pwd", example = "12345678")
    @NotBlank(message = "USER_0013")
    @Size(max = 15,min = 6,message = "USER_0017")
    private String repeatPassword;


}
